package com.audaque.springboot.foshanupload.web.casclientautoconfigsupportdemo1.controller;


import com.audaque.springboot.foshanupload.web.casclientautoconfigsupportdemo1.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/authenticationIgnoreUrlPatternTest")
public class AuthenticationIgnoreUrlPatternTestController {
    @Autowired
    private OrderService orderService;

    //需要登录
    @RequestMapping(value = "/query", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public String query() {
        return "张三";
    }

    //放行
    @RequestMapping(value = "/insert")
    public String insert() {
        orderService.insertOrder();
        return "123";
    }
}
